package com.diankangwo.factory.service.impl;

import com.diankangwo.factory.dao.TdAccountMapper;
import com.diankangwo.factory.entity.TdAccount;
import com.diankangwo.factory.service.TdAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("tdAccountService")
public class TdAccountServiceImpl implements TdAccountService {

    @Autowired
    private TdAccountMapper tdAccountMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tdAccountMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TdAccount record) {
        return tdAccountMapper.insert(record);
    }

    @Override
    public int insertSelective(TdAccount record) {
        return tdAccountMapper.insertSelective(record);
    }

    @Override
    public TdAccount selectByPrimaryKey(Integer id) {
        return tdAccountMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TdAccount record) {
        return tdAccountMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TdAccount record) {
        return tdAccountMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TdAccount> queryList(Map<String, Object> map) {
        return tdAccountMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tdAccountMapper.queryTotal(map);
    }

}
